package com.imooc.entity;

import java.util.Date;

public class WechatAuth {
    private Integer wechatAuthId;

    //private Integer userId;

    //外键
    private PersonInfo user;

    private String openId;

    private Date createTime;

    public Integer getWechatAuthId() {
        return wechatAuthId;
    }

    public void setWechatAuthId(Integer wechatAuthId) {
        this.wechatAuthId = wechatAuthId;
    }

    public PersonInfo getUser() {
        return user;
    }

    public void setUser(PersonInfo user) {
        this.user = user;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "WechatAuth{" +
                "wechatAuthId=" + wechatAuthId +
                ", user=" + user +
                ", openId='" + openId + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}